package com.wuuxiang.polestar.admin.dto;

import net.sf.oval.constraint.NotBlank;
import net.sf.oval.constraint.NotNull;

/**
 * 项目名称：polestar        <br>
 * 类描述：                         <br>
 * 创建人：夏鸿鹏                    <br>
 * 创建时间：2017-11-28 20:38        <br>
 * 修改备注：                        <br>
 */

public class ConfigDto {

    /* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ConfigDto [teamName=" + teamName + ", propertyName=" + propertyName + ", itemName=" + itemName
				+ ", value=" + value + ", username=" + username + ", releaseTime=" + releaseTime + ", remark=" + remark
				+ ", releaseStatus=" + releaseStatus + ", tempValue=" + tempValue + "]";
	}

	// 项目组
    @NotBlank(message = "项目组名称不能为空")
    @NotNull(message = "项目组名称不能为空")
    private String teamName;
    // 配置文件名
    @NotBlank(message = "配置文件名称不能为空")
    @NotNull(message = "配置文件名称不能为空")
    private String propertyName;
    // 配置项名称
    @NotBlank(message = "配置项名称不能为空")
    @NotNull(message = "配置项名称不能为空")
    private String itemName;
    // 配置项内容
    private String value;
    // 发布人
    private String username;
    // 发布时间
    private String releaseTime;
    // 备注
    private String remark;
    // 是否已发布
    private int releaseStatus = 1;
    // 未发布的值
    private String tempValue;
    public ConfigDto() {
        super();
    }

    public ConfigDto(String teamName, String propertyName, String itemName, String value) {
        this.teamName = teamName;
        this.propertyName = propertyName;
        this.itemName = itemName;
        this.value = value;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the releaseTime
	 */
	public String getReleaseTime() {
		return releaseTime;
	}

	/**
	 * @param releaseTime the releaseTime to set
	 */
	public void setReleaseTime(String releaseTime) {
		this.releaseTime = releaseTime;
	}

	/**
	 * @return the releaseStatus
	 */
	public int getReleaseStatus() {
		return releaseStatus;
	}

	/**
	 * @param releaseStatus the releaseStatus to set
	 */
	public void setReleaseStatus(int releaseStatus) {
		this.releaseStatus = releaseStatus;
	}

	/**
	 * @return the tempValue
	 */
	public String getTempValue() {
		return tempValue;
	}

	/**
	 * @param tempValue the tempValue to set
	 */
	public void setTempValue(String tempValue) {
		this.tempValue = tempValue;
	}

}
